<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>切换选项卡</title>
</head>

<body>
  <div class="container">
    <div class="c-mode">
      当前页面切换模式为：<span id="c-mode">fade</span>
      <button id="c-button">点我切换哈</button>
    </div>

    <ul class="c-tab">
      <li class="item active">选项1</li>
      <li class="item">选项2</li>
      <li class="item">选项3</li>
    </ul>

    <div class="c-page">
      <ul class="p-wrapper">
        <li class="p-item">页面1</li>
        <li class="p-item">页面2</li>
        <li class="p-item">页面3</li>
      </ul>
    </div>
  </div>

  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</body>

</html>